<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

</body>
<script>
    //获取对象的键数组，值数组，键值数组
    const person = {
        name: "jack",
        age: 21,
        language: ['java', 'js', 'css']
    };
    console.log(Object.keys(person));
    console.log(Object.values(person));
    console.log(Object.entries(person));

    //拷贝对象
    const target = {a: 1};
    const source1 = {b: 2};
    const source2 = {c: 3};
    Object.assign(target, source1, source2);
    console.log(target);

    //拷贝对象
    const source1 = {a: 1};
    const source2 = {b: 2};
    const target = {...source1,...source2};
    console.log(target);
</script>
</html>